package com.mangguo.tingjian.util;

import java.util.HashMap;
import java.util.Map;

public class CityUtils {
    public static Map<String, Integer> provinceToCodeMap = new HashMap<>();
    public static Map<Integer, String> provinceToStrMap = new HashMap<>();
    public static Map<String, Integer> cityToCodeMap = new HashMap<>();
    public static Map<Integer, String> cityToStrMap = new HashMap<>();

    static {
        provinceToCodeMap.put("北京",110000);
        provinceToCodeMap.put("天津",120000);
        provinceToCodeMap.put("河北",130000);
        provinceToCodeMap.put("山西",140000);
        provinceToCodeMap.put("内蒙古",150000);
        provinceToCodeMap.put("辽宁",210000);
        provinceToCodeMap.put("吉林",220000);
        provinceToCodeMap.put("黑龙江",230000);
        provinceToCodeMap.put("上海",310000);
        provinceToCodeMap.put("江苏",320000);
        provinceToCodeMap.put("浙江",330000);
        provinceToCodeMap.put("安徽",340000);
        provinceToCodeMap.put("福建",350000);
        provinceToCodeMap.put("江西",360000);
        provinceToCodeMap.put("山东",370000);
        provinceToCodeMap.put("河南",410000);
        provinceToCodeMap.put("湖北",420000);
        provinceToCodeMap.put("湖南",430000);
        provinceToCodeMap.put("广东",440000);
        provinceToCodeMap.put("广西",450000);
        provinceToCodeMap.put("海南",460000);
        provinceToCodeMap.put("重庆",500000);
        provinceToCodeMap.put("四川",510000);
        provinceToCodeMap.put("贵州",520000);
        provinceToCodeMap.put("云南",530000);
        provinceToCodeMap.put("西藏",540000);
        provinceToCodeMap.put("陕西",610000);
        provinceToCodeMap.put("甘肃",620000);
        provinceToCodeMap.put("青海",630000);
        provinceToCodeMap.put("宁夏",640000);
        provinceToCodeMap.put("新疆",650000);
        provinceToCodeMap.put("台湾",710000);
        provinceToCodeMap.put("香港",810000);
        provinceToCodeMap.put("澳门",820000);



        provinceToStrMap.put(110000,"北京");
        provinceToStrMap.put(120000,"天津");
        provinceToStrMap.put(130000,"河北");
        provinceToStrMap.put(140000,"山西");
        provinceToStrMap.put(150000,"内蒙古");
        provinceToStrMap.put(210000,"辽宁");
        provinceToStrMap.put(220000,"吉林");
        provinceToStrMap.put(230000,"黑龙江");
        provinceToStrMap.put(310000,"上海");
        provinceToStrMap.put(320000,"江苏");
        provinceToStrMap.put(330000,"浙江");
        provinceToStrMap.put(340000,"安徽");
        provinceToStrMap.put(350000,"福建");
        provinceToStrMap.put(360000,"江西");
        provinceToStrMap.put(370000,"山东");
        provinceToStrMap.put(410000,"河南");
        provinceToStrMap.put(420000,"湖北");
        provinceToStrMap.put(430000,"湖南");
        provinceToStrMap.put(440000,"广东");
        provinceToStrMap.put(450000,"广西");
        provinceToStrMap.put(460000,"海南");
        provinceToStrMap.put(500000,"重庆");
        provinceToStrMap.put(510000,"四川");
        provinceToStrMap.put(520000,"贵州");
        provinceToStrMap.put(530000,"云南");
        provinceToStrMap.put(540000,"西藏");
        provinceToStrMap.put(610000,"陕西");
        provinceToStrMap.put(620000,"甘肃");
        provinceToStrMap.put(630000,"青海");
        provinceToStrMap.put(640000,"宁夏");
        provinceToStrMap.put(650000,"新疆");
        provinceToStrMap.put(710000,"台湾");
        provinceToStrMap.put(810000,"香港");
        provinceToStrMap.put(820000,"澳门");



        cityToCodeMap.put("石家庄",130100);
        cityToCodeMap.put("唐山",130200);
        cityToCodeMap.put("秦皇岛",130300);
        cityToCodeMap.put("邯郸",130400);
        cityToCodeMap.put("邢台",130500);
        cityToCodeMap.put("保定",130600);
        cityToCodeMap.put("张家口",130700);
        cityToCodeMap.put("承德",130800);
        cityToCodeMap.put("沧州",130900);
        cityToCodeMap.put("廊坊",131000);
        cityToCodeMap.put("衡水",131100);
        cityToCodeMap.put("太原",140100);
        cityToCodeMap.put("大同",140200);
        cityToCodeMap.put("阳泉",140300);
        cityToCodeMap.put("长治",140400);
        cityToCodeMap.put("晋城",140500);
        cityToCodeMap.put("朔州",140600);
        cityToCodeMap.put("晋中",140700);
        cityToCodeMap.put("运城",140800);
        cityToCodeMap.put("忻州",140900);
        cityToCodeMap.put("临汾",141000);
        cityToCodeMap.put("吕梁",141100);
        cityToCodeMap.put("呼和浩特",150100);
        cityToCodeMap.put("包头",150200);
        cityToCodeMap.put("乌海",150300);
        cityToCodeMap.put("赤峰",150400);
        cityToCodeMap.put("通辽",150500);
        cityToCodeMap.put("鄂尔多斯",150600);
        cityToCodeMap.put("呼伦贝尔",150700);
        cityToCodeMap.put("巴彦淖尔",150800);
        cityToCodeMap.put("乌兰察布",150900);
        cityToCodeMap.put("兴安盟",152200);
        cityToCodeMap.put("锡林郭勒盟",152500);
        cityToCodeMap.put("阿拉善盟",152900);
        cityToCodeMap.put("沈阳",210100);
        cityToCodeMap.put("大连",210200);
        cityToCodeMap.put("鞍山",210300);
        cityToCodeMap.put("抚顺",210400);
        cityToCodeMap.put("本溪",210500);
        cityToCodeMap.put("丹东",210600);
        cityToCodeMap.put("锦州",210700);
        cityToCodeMap.put("营口",210800);
        cityToCodeMap.put("阜新",210900);
        cityToCodeMap.put("辽阳",211000);
        cityToCodeMap.put("盘锦",211100);
        cityToCodeMap.put("铁岭",211200);
        cityToCodeMap.put("朝阳",211300);
        cityToCodeMap.put("葫芦岛",211400);
        cityToCodeMap.put("长春",220100);
        cityToCodeMap.put("吉林",220200);
        cityToCodeMap.put("四平",220300);
        cityToCodeMap.put("辽源",220400);
        cityToCodeMap.put("通化",220500);
        cityToCodeMap.put("白山",220600);
        cityToCodeMap.put("松原",220700);
        cityToCodeMap.put("白城",220800);
        cityToCodeMap.put("延边朝鲜族自治州",222400);
        cityToCodeMap.put("哈尔滨",230100);
        cityToCodeMap.put("齐齐哈尔",230200);
        cityToCodeMap.put("鸡西",230300);
        cityToCodeMap.put("鹤岗",230400);
        cityToCodeMap.put("双鸭山",230500);
        cityToCodeMap.put("大庆",230600);
        cityToCodeMap.put("伊春",230700);
        cityToCodeMap.put("佳木斯",230800);
        cityToCodeMap.put("七台河",230900);
        cityToCodeMap.put("牡丹江",231000);
        cityToCodeMap.put("黑河",231100);
        cityToCodeMap.put("绥化",231200);
        cityToCodeMap.put("大兴安岭",232700);
        cityToCodeMap.put("南京",320100);
        cityToCodeMap.put("无锡",320200);
        cityToCodeMap.put("徐州",320300);
        cityToCodeMap.put("常州",320400);
        cityToCodeMap.put("苏州",320500);
        cityToCodeMap.put("南通",320600);
        cityToCodeMap.put("连云港",320700);
        cityToCodeMap.put("淮安",320800);
        cityToCodeMap.put("盐城",320900);
        cityToCodeMap.put("扬州",321000);
        cityToCodeMap.put("镇江",321100);
        cityToCodeMap.put("泰州",321200);
        cityToCodeMap.put("宿迁",321300);
        cityToCodeMap.put("杭州",330100);
        cityToCodeMap.put("宁波",330200);
        cityToCodeMap.put("温州",330300);
        cityToCodeMap.put("嘉兴",330400);
        cityToCodeMap.put("湖州",330500);
        cityToCodeMap.put("绍兴",330600);
        cityToCodeMap.put("金华",330700);
        cityToCodeMap.put("衢州",330800);
        cityToCodeMap.put("舟山",330900);
        cityToCodeMap.put("台州",331000);
        cityToCodeMap.put("丽水",331100);
        cityToCodeMap.put("合肥",340100);
        cityToCodeMap.put("芜湖",340200);
        cityToCodeMap.put("蚌埠",340300);
        cityToCodeMap.put("淮南",340400);
        cityToCodeMap.put("马鞍山",340500);
        cityToCodeMap.put("淮北",340600);
        cityToCodeMap.put("铜陵",340700);
        cityToCodeMap.put("安庆",340800);
        cityToCodeMap.put("黄山",341000);
        cityToCodeMap.put("滁州",341100);
        cityToCodeMap.put("阜阳",341200);
        cityToCodeMap.put("宿州",341300);
        cityToCodeMap.put("六安",341500);
        cityToCodeMap.put("亳州",341600);
        cityToCodeMap.put("池州",341700);
        cityToCodeMap.put("宣城",341800);
        cityToCodeMap.put("福州",350100);
        cityToCodeMap.put("厦门",350200);
        cityToCodeMap.put("莆田",350300);
        cityToCodeMap.put("三明",350400);
        cityToCodeMap.put("泉州",350500);
        cityToCodeMap.put("漳州",350600);
        cityToCodeMap.put("南平",350700);
        cityToCodeMap.put("龙岩",350800);
        cityToCodeMap.put("宁德",350900);
        cityToCodeMap.put("南昌",360100);
        cityToCodeMap.put("景德镇",360200);
        cityToCodeMap.put("萍乡",360300);
        cityToCodeMap.put("九江",360400);
        cityToCodeMap.put("新余",360500);
        cityToCodeMap.put("鹰潭",360600);
        cityToCodeMap.put("赣州",360700);
        cityToCodeMap.put("吉安",360800);
        cityToCodeMap.put("宜春",360900);
        cityToCodeMap.put("抚州",361000);
        cityToCodeMap.put("上饶",361100);
        cityToCodeMap.put("济南",370100);
        cityToCodeMap.put("青岛",370200);
        cityToCodeMap.put("淄博",370300);
        cityToCodeMap.put("枣庄",370400);
        cityToCodeMap.put("东营",370500);
        cityToCodeMap.put("烟台",370600);
        cityToCodeMap.put("潍坊",370700);
        cityToCodeMap.put("济宁",370800);
        cityToCodeMap.put("泰安",370900);
        cityToCodeMap.put("威海",371000);
        cityToCodeMap.put("日照",371100);
        cityToCodeMap.put("莱芜",371200);
        cityToCodeMap.put("临沂",371300);
        cityToCodeMap.put("德州",371400);
        cityToCodeMap.put("聊城",371500);
        cityToCodeMap.put("滨州",371600);
        cityToCodeMap.put("菏泽",371700);
        cityToCodeMap.put("郑州",410100);
        cityToCodeMap.put("开封",410200);
        cityToCodeMap.put("洛阳",410300);
        cityToCodeMap.put("平顶山",410400);
        cityToCodeMap.put("安阳",410500);
        cityToCodeMap.put("鹤壁",410600);
        cityToCodeMap.put("新乡",410700);
        cityToCodeMap.put("焦作",410800);
        cityToCodeMap.put("濮阳",410900);
        cityToCodeMap.put("许昌",411000);
        cityToCodeMap.put("漯河",411100);
        cityToCodeMap.put("三门峡",411200);
        cityToCodeMap.put("南阳",411300);
        cityToCodeMap.put("商丘",411400);
        cityToCodeMap.put("信阳",411500);
        cityToCodeMap.put("周口",411600);
        cityToCodeMap.put("驻马店",411700);
        cityToCodeMap.put("直辖县级行政区划",419000);
        cityToCodeMap.put("武汉",420100);
        cityToCodeMap.put("黄石",420200);
        cityToCodeMap.put("十堰",420300);
        cityToCodeMap.put("宜昌",420500);
        cityToCodeMap.put("襄阳",420600);
        cityToCodeMap.put("鄂州",420700);
        cityToCodeMap.put("荆门",420800);
        cityToCodeMap.put("孝感",420900);
        cityToCodeMap.put("荆州",421000);
        cityToCodeMap.put("黄冈",421100);
        cityToCodeMap.put("咸宁",421200);
        cityToCodeMap.put("随州",421300);
        cityToCodeMap.put("恩施",422800);
        cityToCodeMap.put("直辖县级行政区划",429000);
        cityToCodeMap.put("长沙",430100);
        cityToCodeMap.put("株洲",430200);
        cityToCodeMap.put("湘潭",430300);
        cityToCodeMap.put("衡阳",430400);
        cityToCodeMap.put("邵阳",430500);
        cityToCodeMap.put("岳阳",430600);
        cityToCodeMap.put("常德",430700);
        cityToCodeMap.put("张家界",430800);
        cityToCodeMap.put("益阳",430900);
        cityToCodeMap.put("郴州",431000);
        cityToCodeMap.put("永州",431100);
        cityToCodeMap.put("怀化",431200);
        cityToCodeMap.put("娄底",431300);
        cityToCodeMap.put("湘西",433100);
        cityToCodeMap.put("广州",440100);
        cityToCodeMap.put("韶关",440200);
        cityToCodeMap.put("深圳",440300);
        cityToCodeMap.put("珠海",440400);
        cityToCodeMap.put("汕头",440500);
        cityToCodeMap.put("佛山",440600);
        cityToCodeMap.put("江门",440700);
        cityToCodeMap.put("湛江",440800);
        cityToCodeMap.put("茂名",440900);
        cityToCodeMap.put("肇庆",441200);
        cityToCodeMap.put("惠州",441300);
        cityToCodeMap.put("梅州",441400);
        cityToCodeMap.put("汕尾",441500);
        cityToCodeMap.put("河源",441600);
        cityToCodeMap.put("阳江",441700);
        cityToCodeMap.put("清远",441800);
        cityToCodeMap.put("东莞",441900);
        cityToCodeMap.put("中山",442000);
        cityToCodeMap.put("潮州",445100);
        cityToCodeMap.put("揭阳",445200);
        cityToCodeMap.put("云浮",445300);
        cityToCodeMap.put("南宁",450100);
        cityToCodeMap.put("柳州",450200);
        cityToCodeMap.put("桂林",450300);
        cityToCodeMap.put("梧州",450400);
        cityToCodeMap.put("北海",450500);
        cityToCodeMap.put("防城港",450600);
        cityToCodeMap.put("钦州",450700);
        cityToCodeMap.put("贵港",450800);
        cityToCodeMap.put("玉林",450900);
        cityToCodeMap.put("百色",451000);
        cityToCodeMap.put("贺州",451100);
        cityToCodeMap.put("河池",451200);
        cityToCodeMap.put("来宾",451300);
        cityToCodeMap.put("崇左",451400);
        cityToCodeMap.put("海口",460100);
        cityToCodeMap.put("三亚",460200);
        cityToCodeMap.put("三沙",460300);
        cityToCodeMap.put("直辖县级行政区划",469000);
        cityToCodeMap.put("成都",510100);
        cityToCodeMap.put("自贡",510300);
        cityToCodeMap.put("攀枝花",510400);
        cityToCodeMap.put("泸州",510500);
        cityToCodeMap.put("德阳",510600);
        cityToCodeMap.put("绵阳",510700);
        cityToCodeMap.put("广元",510800);
        cityToCodeMap.put("遂宁",510900);
        cityToCodeMap.put("内江",511000);
        cityToCodeMap.put("乐山",511100);
        cityToCodeMap.put("南充",511300);
        cityToCodeMap.put("眉山",511400);
        cityToCodeMap.put("宜宾",511500);
        cityToCodeMap.put("广安",511600);
        cityToCodeMap.put("达州",511700);
        cityToCodeMap.put("雅安",511800);
        cityToCodeMap.put("巴中",511900);
        cityToCodeMap.put("资阳",512000);
        cityToCodeMap.put("阿坝",513200);
        cityToCodeMap.put("甘孜",513300);
        cityToCodeMap.put("凉山",513400);
        cityToCodeMap.put("贵阳",520100);
        cityToCodeMap.put("六盘水",520200);
        cityToCodeMap.put("遵义",520300);
        cityToCodeMap.put("安顺",520400);
        cityToCodeMap.put("毕节",520500);
        cityToCodeMap.put("铜仁",520600);
        cityToCodeMap.put("黔西南",522300);
        cityToCodeMap.put("黔东南",522600);
        cityToCodeMap.put("黔南",522700);
        cityToCodeMap.put("昆明",530100);
        cityToCodeMap.put("曲靖",530300);
        cityToCodeMap.put("玉溪",530400);
        cityToCodeMap.put("保山",530500);
        cityToCodeMap.put("昭通",530600);
        cityToCodeMap.put("丽江",530700);
        cityToCodeMap.put("普洱",530800);
        cityToCodeMap.put("临沧",530900);
        cityToCodeMap.put("楚雄",532300);
        cityToCodeMap.put("红河",532500);
        cityToCodeMap.put("文山",532600);
        cityToCodeMap.put("西双版纳",532800);
        cityToCodeMap.put("大理",532900);
        cityToCodeMap.put("德宏",533100);
        cityToCodeMap.put("怒江",533300);
        cityToCodeMap.put("迪庆",533400);
        cityToCodeMap.put("拉萨",540100);
        cityToCodeMap.put("日喀则",540200);
        cityToCodeMap.put("昌都",542100);
        cityToCodeMap.put("山南",542200);
        cityToCodeMap.put("那曲",542400);
        cityToCodeMap.put("阿里",542500);
        cityToCodeMap.put("林芝",542600);
        cityToCodeMap.put("西安",610100);
        cityToCodeMap.put("铜川",610200);
        cityToCodeMap.put("宝鸡",610300);
        cityToCodeMap.put("咸阳",610400);
        cityToCodeMap.put("渭南",610500);
        cityToCodeMap.put("延安",610600);
        cityToCodeMap.put("汉中",610700);
        cityToCodeMap.put("榆林",610800);
        cityToCodeMap.put("安康",610900);
        cityToCodeMap.put("商洛",611000);
        cityToCodeMap.put("兰州",620100);
        cityToCodeMap.put("嘉峪关",620200);
        cityToCodeMap.put("金昌",620300);
        cityToCodeMap.put("白银",620400);
        cityToCodeMap.put("天水",620500);
        cityToCodeMap.put("武威",620600);
        cityToCodeMap.put("张掖",620700);
        cityToCodeMap.put("平凉",620800);
        cityToCodeMap.put("酒泉",620900);
        cityToCodeMap.put("庆阳",621000);
        cityToCodeMap.put("定西",621100);
        cityToCodeMap.put("陇南",621200);
        cityToCodeMap.put("临夏",622900);
        cityToCodeMap.put("甘南",623000);
        cityToCodeMap.put("西宁",630100);
        cityToCodeMap.put("海东",630200);
        cityToCodeMap.put("海北",632200);
        cityToCodeMap.put("黄南",632300);
        cityToCodeMap.put("海南",632500);
        cityToCodeMap.put("果洛",632600);
        cityToCodeMap.put("玉树",632700);
        cityToCodeMap.put("海西",632800);
        cityToCodeMap.put("银川",640100);
        cityToCodeMap.put("石嘴山",640200);
        cityToCodeMap.put("吴忠",640300);
        cityToCodeMap.put("固原",640400);
        cityToCodeMap.put("中卫",640500);
        cityToCodeMap.put("乌鲁木齐",650100);
        cityToCodeMap.put("克拉玛依",650200);
        cityToCodeMap.put("吐鲁番",652100);
        cityToCodeMap.put("哈密",652200);
        cityToCodeMap.put("昌吉",652300);
        cityToCodeMap.put("博尔塔拉",652700);
        cityToCodeMap.put("巴音郭楞",652800);
        cityToCodeMap.put("阿克苏",652900);
        cityToCodeMap.put("克孜勒苏",653000);
        cityToCodeMap.put("喀什",653100);
        cityToCodeMap.put("和田",653200);
        cityToCodeMap.put("伊犁",654000);
        cityToCodeMap.put("塔城",654200);
        cityToCodeMap.put("阿勒泰",654300);
        cityToCodeMap.put("直辖县级行政区划",659000);
        cityToCodeMap.put("台湾",710000);


        cityToStrMap.put(130100,"石家庄");
        cityToStrMap.put(130200,"唐山");
        cityToStrMap.put(130300,"秦皇岛");
        cityToStrMap.put(130400,"邯郸");
        cityToStrMap.put(130500,"邢台");
        cityToStrMap.put(130600,"保定");
        cityToStrMap.put(130700,"张家口");
        cityToStrMap.put(130800,"承德");
        cityToStrMap.put(130900,"沧州");
        cityToStrMap.put(131000,"廊坊");
        cityToStrMap.put(131100,"衡水");
        cityToStrMap.put(140100,"太原");
        cityToStrMap.put(140200,"大同");
        cityToStrMap.put(140300,"阳泉");
        cityToStrMap.put(140400,"长治");
        cityToStrMap.put(140500,"晋城");
        cityToStrMap.put(140600,"朔州");
        cityToStrMap.put(140700,"晋中");
        cityToStrMap.put(140800,"运城");
        cityToStrMap.put(140900,"忻州");
        cityToStrMap.put(141000,"临汾");
        cityToStrMap.put(141100,"吕梁");
        cityToStrMap.put(150100,"呼和浩特");
        cityToStrMap.put(150200,"包头");
        cityToStrMap.put(150300,"乌海");
        cityToStrMap.put(150400,"赤峰");
        cityToStrMap.put(150500,"通辽");
        cityToStrMap.put(150600,"鄂尔多斯");
        cityToStrMap.put(150700,"呼伦贝尔");
        cityToStrMap.put(150800,"巴彦淖尔");
        cityToStrMap.put(150900,"乌兰察布");
        cityToStrMap.put(152200,"兴安盟");
        cityToStrMap.put(152500,"锡林郭勒盟");
        cityToStrMap.put(152900,"阿拉善盟");
        cityToStrMap.put(210100,"沈阳");
        cityToStrMap.put(210200,"大连");
        cityToStrMap.put(210300,"鞍山");
        cityToStrMap.put(210400,"抚顺");
        cityToStrMap.put(210500,"本溪");
        cityToStrMap.put(210600,"丹东");
        cityToStrMap.put(210700,"锦州");
        cityToStrMap.put(210800,"营口");
        cityToStrMap.put(210900,"阜新");
        cityToStrMap.put(211000,"辽阳");
        cityToStrMap.put(211100,"盘锦");
        cityToStrMap.put(211200,"铁岭");
        cityToStrMap.put(211300,"朝阳");
        cityToStrMap.put(211400,"葫芦岛");
        cityToStrMap.put(220100,"长春");
        cityToStrMap.put(220200,"吉林");
        cityToStrMap.put(220300,"四平");
        cityToStrMap.put(220400,"辽源");
        cityToStrMap.put(220500,"通化");
        cityToStrMap.put(220600,"白山");
        cityToStrMap.put(220700,"松原");
        cityToStrMap.put(220800,"白城");
        cityToStrMap.put(222400,"延边朝鲜族自治州");
        cityToStrMap.put(230100,"哈尔滨");
        cityToStrMap.put(230200,"齐齐哈尔");
        cityToStrMap.put(230300,"鸡西");
        cityToStrMap.put(230400,"鹤岗");
        cityToStrMap.put(230500,"双鸭山");
        cityToStrMap.put(230600,"大庆");
        cityToStrMap.put(230700,"伊春");
        cityToStrMap.put(230800,"佳木斯");
        cityToStrMap.put(230900,"七台河");
        cityToStrMap.put(231000,"牡丹江");
        cityToStrMap.put(231100,"黑河");
        cityToStrMap.put(231200,"绥化");
        cityToStrMap.put(232700,"大兴安岭");
        cityToStrMap.put(320100,"南京");
        cityToStrMap.put(320200,"无锡");
        cityToStrMap.put(320300,"徐州");
        cityToStrMap.put(320400,"常州");
        cityToStrMap.put(320500,"苏州");
        cityToStrMap.put(320600,"南通");
        cityToStrMap.put(320700,"连云港");
        cityToStrMap.put(320800,"淮安");
        cityToStrMap.put(320900,"盐城");
        cityToStrMap.put(321000,"扬州");
        cityToStrMap.put(321100,"镇江");
        cityToStrMap.put(321200,"泰州");
        cityToStrMap.put(321300,"宿迁");
        cityToStrMap.put(330100,"杭州");
        cityToStrMap.put(330200,"宁波");
        cityToStrMap.put(330300,"温州");
        cityToStrMap.put(330400,"嘉兴");
        cityToStrMap.put(330500,"湖州");
        cityToStrMap.put(330600,"绍兴");
        cityToStrMap.put(330700,"金华");
        cityToStrMap.put(330800,"衢州");
        cityToStrMap.put(330900,"舟山");
        cityToStrMap.put(331000,"台州");
        cityToStrMap.put(331100,"丽水");
        cityToStrMap.put(340100,"合肥");
        cityToStrMap.put(340200,"芜湖");
        cityToStrMap.put(340300,"蚌埠");
        cityToStrMap.put(340400,"淮南");
        cityToStrMap.put(340500,"马鞍山");
        cityToStrMap.put(340600,"淮北");
        cityToStrMap.put(340700,"铜陵");
        cityToStrMap.put(340800,"安庆");
        cityToStrMap.put(341000,"黄山");
        cityToStrMap.put(341100,"滁州");
        cityToStrMap.put(341200,"阜阳");
        cityToStrMap.put(341300,"宿州");
        cityToStrMap.put(341500,"六安");
        cityToStrMap.put(341600,"亳州");
        cityToStrMap.put(341700,"池州");
        cityToStrMap.put(341800,"宣城");
        cityToStrMap.put(350100,"福州");
        cityToStrMap.put(350200,"厦门");
        cityToStrMap.put(350300,"莆田");
        cityToStrMap.put(350400,"三明");
        cityToStrMap.put(350500,"泉州");
        cityToStrMap.put(350600,"漳州");
        cityToStrMap.put(350700,"南平");
        cityToStrMap.put(350800,"龙岩");
        cityToStrMap.put(350900,"宁德");
        cityToStrMap.put(360100,"南昌");
        cityToStrMap.put(360200,"景德镇");
        cityToStrMap.put(360300,"萍乡");
        cityToStrMap.put(360400,"九江");
        cityToStrMap.put(360500,"新余");
        cityToStrMap.put(360600,"鹰潭");
        cityToStrMap.put(360700,"赣州");
        cityToStrMap.put(360800,"吉安");
        cityToStrMap.put(360900,"宜春");
        cityToStrMap.put(361000,"抚州");
        cityToStrMap.put(361100,"上饶");
        cityToStrMap.put(370100,"济南");
        cityToStrMap.put(370200,"青岛");
        cityToStrMap.put(370300,"淄博");
        cityToStrMap.put(370400,"枣庄");
        cityToStrMap.put(370500,"东营");
        cityToStrMap.put(370600,"烟台");
        cityToStrMap.put(370700,"潍坊");
        cityToStrMap.put(370800,"济宁");
        cityToStrMap.put(370900,"泰安");
        cityToStrMap.put(371000,"威海");
        cityToStrMap.put(371100,"日照");
        cityToStrMap.put(371200,"莱芜");
        cityToStrMap.put(371300,"临沂");
        cityToStrMap.put(371400,"德州");
        cityToStrMap.put(371500,"聊城");
        cityToStrMap.put(371600,"滨州");
        cityToStrMap.put(371700,"菏泽");
        cityToStrMap.put(410100,"郑州");
        cityToStrMap.put(410200,"开封");
        cityToStrMap.put(410300,"洛阳");
        cityToStrMap.put(410400,"平顶山");
        cityToStrMap.put(410500,"安阳");
        cityToStrMap.put(410600,"鹤壁");
        cityToStrMap.put(410700,"新乡");
        cityToStrMap.put(410800,"焦作");
        cityToStrMap.put(410900,"濮阳");
        cityToStrMap.put(411000,"许昌");
        cityToStrMap.put(411100,"漯河");
        cityToStrMap.put(411200,"三门峡");
        cityToStrMap.put(411300,"南阳");
        cityToStrMap.put(411400,"商丘");
        cityToStrMap.put(411500,"信阳");
        cityToStrMap.put(411600,"周口");
        cityToStrMap.put(411700,"驻马店");
        cityToStrMap.put(419000,"直辖县级行政区划");
        cityToStrMap.put(420100,"武汉");
        cityToStrMap.put(420200,"黄石");
        cityToStrMap.put(420300,"十堰");
        cityToStrMap.put(420500,"宜昌");
        cityToStrMap.put(420600,"襄阳");
        cityToStrMap.put(420700,"鄂州");
        cityToStrMap.put(420800,"荆门");
        cityToStrMap.put(420900,"孝感");
        cityToStrMap.put(421000,"荆州");
        cityToStrMap.put(421100,"黄冈");
        cityToStrMap.put(421200,"咸宁");
        cityToStrMap.put(421300,"随州");
        cityToStrMap.put(422800,"恩施");
        cityToStrMap.put(429000,"直辖县级行政区划");
        cityToStrMap.put(430100,"长沙");
        cityToStrMap.put(430200,"株洲");
        cityToStrMap.put(430300,"湘潭");
        cityToStrMap.put(430400,"衡阳");
        cityToStrMap.put(430500,"邵阳");
        cityToStrMap.put(430600,"岳阳");
        cityToStrMap.put(430700,"常德");
        cityToStrMap.put(430800,"张家界");
        cityToStrMap.put(430900,"益阳");
        cityToStrMap.put(431000,"郴州");
        cityToStrMap.put(431100,"永州");
        cityToStrMap.put(431200,"怀化");
        cityToStrMap.put(431300,"娄底");
        cityToStrMap.put(433100,"湘西");
        cityToStrMap.put(440100,"广州");
        cityToStrMap.put(440200,"韶关");
        cityToStrMap.put(440300,"深圳");
        cityToStrMap.put(440400,"珠海");
        cityToStrMap.put(440500,"汕头");
        cityToStrMap.put(440600,"佛山");
        cityToStrMap.put(440700,"江门");
        cityToStrMap.put(440800,"湛江");
        cityToStrMap.put(440900,"茂名");
        cityToStrMap.put(441200,"肇庆");
        cityToStrMap.put(441300,"惠州");
        cityToStrMap.put(441400,"梅州");
        cityToStrMap.put(441500,"汕尾");
        cityToStrMap.put(441600,"河源");
        cityToStrMap.put(441700,"阳江");
        cityToStrMap.put(441800,"清远");
        cityToStrMap.put(441900,"东莞");
        cityToStrMap.put(442000,"中山");
        cityToStrMap.put(445100,"潮州");
        cityToStrMap.put(445200,"揭阳");
        cityToStrMap.put(445300,"云浮");
        cityToStrMap.put(450100,"南宁");
        cityToStrMap.put(450200,"柳州");
        cityToStrMap.put(450300,"桂林");
        cityToStrMap.put(450400,"梧州");
        cityToStrMap.put(450500,"北海");
        cityToStrMap.put(450600,"防城港");
        cityToStrMap.put(450700,"钦州");
        cityToStrMap.put(450800,"贵港");
        cityToStrMap.put(450900,"玉林");
        cityToStrMap.put(451000,"百色");
        cityToStrMap.put(451100,"贺州");
        cityToStrMap.put(451200,"河池");
        cityToStrMap.put(451300,"来宾");
        cityToStrMap.put(451400,"崇左");
        cityToStrMap.put(460100,"海口");
        cityToStrMap.put(460200,"三亚");
        cityToStrMap.put(460300,"三沙");
        cityToStrMap.put(469000,"直辖县级行政区划");
        cityToStrMap.put(510100,"成都");
        cityToStrMap.put(510300,"自贡");
        cityToStrMap.put(510400,"攀枝花");
        cityToStrMap.put(510500,"泸州");
        cityToStrMap.put(510600,"德阳");
        cityToStrMap.put(510700,"绵阳");
        cityToStrMap.put(510800,"广元");
        cityToStrMap.put(510900,"遂宁");
        cityToStrMap.put(511000,"内江");
        cityToStrMap.put(511100,"乐山");
        cityToStrMap.put(511300,"南充");
        cityToStrMap.put(511400,"眉山");
        cityToStrMap.put(511500,"宜宾");
        cityToStrMap.put(511600,"广安");
        cityToStrMap.put(511700,"达州");
        cityToStrMap.put(511800,"雅安");
        cityToStrMap.put(511900,"巴中");
        cityToStrMap.put(512000,"资阳");
        cityToStrMap.put(513200,"阿坝");
        cityToStrMap.put(513300,"甘孜");
        cityToStrMap.put(513400,"凉山");
        cityToStrMap.put(520100,"贵阳");
        cityToStrMap.put(520200,"六盘水");
        cityToStrMap.put(520300,"遵义");
        cityToStrMap.put(520400,"安顺");
        cityToStrMap.put(520500,"毕节");
        cityToStrMap.put(520600,"铜仁");
        cityToStrMap.put(522300,"黔西南");
        cityToStrMap.put(522600,"黔东南");
        cityToStrMap.put(522700,"黔南");
        cityToStrMap.put(530100,"昆明");
        cityToStrMap.put(530300,"曲靖");
        cityToStrMap.put(530400,"玉溪");
        cityToStrMap.put(530500,"保山");
        cityToStrMap.put(530600,"昭通");
        cityToStrMap.put(530700,"丽江");
        cityToStrMap.put(530800,"普洱");
        cityToStrMap.put(530900,"临沧");
        cityToStrMap.put(532300,"楚雄");
        cityToStrMap.put(532500,"红河");
        cityToStrMap.put(532600,"文山");
        cityToStrMap.put(532800,"西双版纳");
        cityToStrMap.put(532900,"大理");
        cityToStrMap.put(533100,"德宏");
        cityToStrMap.put(533300,"怒江");
        cityToStrMap.put(533400,"迪庆");
        cityToStrMap.put(540100,"拉萨");
        cityToStrMap.put(540200,"日喀则");
        cityToStrMap.put(542100,"昌都");
        cityToStrMap.put(542200,"山南");
        cityToStrMap.put(542400,"那曲");
        cityToStrMap.put(542500,"阿里");
        cityToStrMap.put(542600,"林芝");
        cityToStrMap.put(610100,"西安");
        cityToStrMap.put(610200,"铜川");
        cityToStrMap.put(610300,"宝鸡");
        cityToStrMap.put(610400,"咸阳");
        cityToStrMap.put(610500,"渭南");
        cityToStrMap.put(610600,"延安");
        cityToStrMap.put(610700,"汉中");
        cityToStrMap.put(610800,"榆林");
        cityToStrMap.put(610900,"安康");
        cityToStrMap.put(611000,"商洛");
        cityToStrMap.put(620100,"兰州");
        cityToStrMap.put(620200,"嘉峪关");
        cityToStrMap.put(620300,"金昌");
        cityToStrMap.put(620400,"白银");
        cityToStrMap.put(620500,"天水");
        cityToStrMap.put(620600,"武威");
        cityToStrMap.put(620700,"张掖");
        cityToStrMap.put(620800,"平凉");
        cityToStrMap.put(620900,"酒泉");
        cityToStrMap.put(621000,"庆阳");
        cityToStrMap.put(621100,"定西");
        cityToStrMap.put(621200,"陇南");
        cityToStrMap.put(622900,"临夏");
        cityToStrMap.put(623000,"甘南");
        cityToStrMap.put(630100,"西宁");
        cityToStrMap.put(630200,"海东");
        cityToStrMap.put(632200,"海北");
        cityToStrMap.put(632300,"黄南");
        cityToStrMap.put(632500,"海南");
        cityToStrMap.put(632600,"果洛");
        cityToStrMap.put(632700,"玉树");
        cityToStrMap.put(632800,"海西");
        cityToStrMap.put(640100,"银川");
        cityToStrMap.put(640200,"石嘴山");
        cityToStrMap.put(640300,"吴忠");
        cityToStrMap.put(640400,"固原");
        cityToStrMap.put(640500,"中卫");
        cityToStrMap.put(650100,"乌鲁木齐");
        cityToStrMap.put(650200,"克拉玛依");
        cityToStrMap.put(652100,"吐鲁番");
        cityToStrMap.put(652200,"哈密");
        cityToStrMap.put(652300,"昌吉");
        cityToStrMap.put(652700,"博尔塔拉");
        cityToStrMap.put(652800,"巴音郭楞");
        cityToStrMap.put(652900,"阿克苏");
        cityToStrMap.put(653000,"克孜勒苏");
        cityToStrMap.put(653100,"喀什");
        cityToStrMap.put(653200,"和田");
        cityToStrMap.put(654000,"伊犁");
        cityToStrMap.put(654200,"塔城");
        cityToStrMap.put(654300,"阿勒泰");
        cityToStrMap.put(659000,"直辖县级行政区划");
        cityToStrMap.put(710000,"台湾");
    }

    public static String getCityName(int code){
        return cityToStrMap.get(code);
    }

    public static Integer getCityCode(String name){
        return cityToCodeMap.get(name);
    }

    public static String getProvinceName(int code){
        return provinceToStrMap.get(code);
    }

    public static Integer getProvincCode(String name){
        return provinceToCodeMap.get(name);
    }
}
